@extends('layouts.information')

@section('title','固定资产显示')

@section('content')
    <div class="row">
        <div class="col-md-9">
            <table class="table table-striped table-bordered">
                <tbody>
                <tr>
                    <th>Id</th>
                    <td>{{ $user->id }}</td>
                </tr>
                <tr>
                    <th>{{ trans('validation.attributes.password') }}</th>
                    <td>{{ $user->password }}</td>
                </tr>
                <tr>
                    <th>{{ trans('validation.attributes.name') }}</th>
                    <td>{{ $user->name }}</td>
                </tr>
                <tr>
                    <th>{{ trans('validation.attributes.mobile') }}</th>
                    <td>{{ $user->mobile }}</td>
                </tr>
                <tr>
                    <th>{{ trans('validation.attributes.phone') }}</th>
                    <td>{{ $user->phone }}</td>
                </tr>
                <tr>
                    <th>{{ trans('validation.attributes.email') }}</th>
                    <td>{{ $user->email }}</td>
                </tr>
                <tr>
                    <th>{{ trans('validation.attributes.sex') }}</th>
                    <td>{{ $user->sex }}</td>
                </tr>
                <tr>
                    <th>{{ trans('validation.attributes.duty') }}</th>
                    <td>{{ $user->duty }}</td>
                </tr>
                <tr>
                    <th>{{ trans('validation.attributes.power') }}</th>
                    <td>{{ $user->power_label }}</td>
                </tr>
                <tr>
                    <th>{{ trans('validation.attributes.depart') }}</th>
                    <td>{{ $user->depart?$user->depart->name:'' }}</td>
                </tr>
                <tr>
                    <th>Roleid</th>
                    <td>{{ $user->role_id?$user->role->name:'' }}</td>
                </tr>
                <tr>
                    <th>是否在职</th>
                    <td>{{ $user->on_job_label }}</td>
                </tr>
                <tr>
                    <th>在线类型</th>
                    <td>{{ $user->phone_type }}</td>
                </tr>
                <tr>
                    <th>{{ trans('validation.attributes.created_at') }}</th>
                    <td>{{ $user->created_at }}</td>
                </tr>
                <tr>
                    <th>{{ trans('validation.attributes.updated_at') }}</th>
                    <td>{{ $user->updated_at }}</td>
                </tr>
                <tr>
                    <th>{{ trans('validation.attributes.start_at') }}</th>
                    <td>{{ $user->start_at }}</td>
                </tr>
                <tr>
                    <th>{{ trans('validation.attributes.unit_start_at') }}</th>
                    <td>{{ $user->unit_start_at }}</td>
                </tr>
                </tbody>
            </table>

            <ul>
                <li>
                    <a href="{{ route('user.index') }}">{{ trans('validation.attributes.back_to_list') }}</a>
                </li>
                <li>
                    <a href="{{ route('user.edit', ['id'=> $user->id ]) }}">{{ trans('validation.attributes.edit') }}</a>
                </li>
                <li>
                    @if($user->role_id)
                    {!! Form::open(['method'=>'DELETE'])!!}
                    <input type="submit" value="{{ trans('validation.attributes.delete') }}">
                    {!! Form::close()!!}
                    @endif
                </li>
            </ul>
        </div>
    </div>
@endsection


